package com.smart_environmental_protection.dao;

import com.smart_environmental_protection.pojo.News;
import com.smart_environmental_protection.pojo.Purpose;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PurposeDao {
    @Select({"select * from s_purpose"})
    List<Purpose> purList();
    @Select({"select * from s_purpose where id=#{id}"})
    Purpose purDetail(int id);
}
